{extends file="main.tpl"}
{block name=head}
<link href="css/register.css" rel="stylesheet" type="text/css" />

<script language="javascript">
function fncSubmit()
{
	if(document.form1.newPassword.value == "")
	{
		alert('Please input newPassword');
		document.form1.password.focus();		
		return false;
	}	

	if(document.form1.retypePassword.value == "")
	{
		alert('Please input Confirm Password');
		document.form1.retypePassword.focus();		
		return false;
	}	

	if(document.form1.newPassword.value != document.form1.retypePassword.value)
	{
		alert('retypePassword Not Match');
		document.form1.retypePassword.focus();		
		return false;
	}	
document.form1.submit();
}
</script>
{/block}
{block name=body}
<form name="form1" action="{$smarty.server.PHP_SELF}" method="POST" class="register1" OnSubmit="return fncSubmit();">
<center><h2>Change Password<h2></center>&nbsp;&nbsp;
<center><font color='red'>{$msg}</font></center>
<table border="0" cellpadding="2" cellspacing="0" align="center">
<tr>
  <td align="right"><b>Old Password :</b></td>
  <td align="right"><INPUT type="password" name="oldPassword" class="text-field" autofocus="autofocus" required /></td>
</tr>
<tr>
  <td align="right"><b>New Password :</b></td>
  <td align="right"><input type="password" name="newPassword" class="text-field" id="newPassword"  required /></td>
</tr>
<tr>
  <td align="right"><b>Re-Type New Password :</b></td>
  <td align="right"><input type="password" name="confNewPassword" class="text-field" id="retypePassword" onblur="emailMatch();" required /></td>
</tr><br />
<tr>
  <td align="center" colspan="2"><input type="submit" name="newPasswordSet" class="button"  value="Change" /></td>
</tr>
</table>
</FORM>
{/block}